using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class UDF_PKT_FieldValueMap : EntityTypeConfiguration<UDF_PKT_FieldValue>
    {
        public UDF_PKT_FieldValueMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.FieldValue)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("UDF_PKT_FieldValue");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.SPID).HasColumnName("SPID");
            this.Property(t => t.FieldID).HasColumnName("FieldID");
            this.Property(t => t.FieldValue).HasColumnName("FieldValue");
        }
    }
}
